{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
    <li><a href="javascript:;">在线买单</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-list">
			<form action="" method="get" class="form-horizontal" role="form" id="form1">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="{MODULE_NAME}" />
				<input type="hidden" name="p" value="member" />
				<input type="hidden" name="ac" value="wlMember" />
				<input type="hidden" name="do" value="recharge" />
				<div class="form-group">
					<label class="col-sm-2 control-label">支付方式</label>
					<div class="col-sm-9">
						<div class="btn-group">
							<a href="{php echo wl_filter_url('paytype:0');}" class="btn {if intval($_GPC['paytype']) == 0}btn-primary{else}btn-default{/if}">全部</a>
							<a href="{php echo wl_filter_url('paytype:1');}" class="btn {if $_GPC['paytype'] == 2}btn-primary{else}btn-default{/if}">余额支付</a>
							<a href="{php echo wl_filter_url('paytype:2');}" class="btn {if $_GPC['paytype'] == 2}btn-primary{else}btn-default{/if}">微信支付</a>
							<a href="{php echo wl_filter_url('paytype:3');}" class="btn {if $_GPC['paytype'] == 3}btn-primary{else}btn-default{/if}">支付宝</a>
							<a href="{php echo wl_filter_url('paytype:5');}" class="btn {if $_GPC['paytype'] == 3}btn-primary{else}btn-default{/if}">小程序</a>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">时间</label>
					<div class="col-sm-9">
						{php echo tpl_select_time_info('time_limit', array('starttime' => date('Y-m-d',$starttime), 'endtime' => date('Y-m-d', $endtime)));}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary" id="search">筛选</button>
					</div>
				</div>
			</form>	
		</div>
	</div>
	<div class="app-table-list">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead class="navbar-inner">
                    <tr>
                        <th style="width:15%;">买单单号</th>
                        <th style="width:10%;">用户信息</th>
                        <th style="width:15%;">商户信息</th>
                        <th style="width:10%;">订单金额</th>
                        <th style="width:10%;">不可优惠金额</th>
                        <th style="width:10%;">已优惠金额</th>
                        <th style="width:10%;">支付金额</th>
                        <th style="width:5%;">充值方式</th>
                        <th style="width:15%;">充值时间</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $list $de}
                    <tr>
                        <td>{$de['orderno']}</td>
                        <td><img src="{$de['avatar']}" style="width: 30px;height: 30px;"> {$de['nickname']}</td>
                        <td><img src="{$de['logo']}" style="width: 30px;height: 30px;"> {$de['title']}</td>
                        <td >￥{$de['goodsprice']}</td>
                        <td >￥{$de['oprice']}</td>
                        <td style="color: green;">￥{$de['card_fee']}</td>
                        <td style="color: red;">￥{$de['price']}</td>
                        <td>
                        	{if $de['paytype'] == 2}
                        	<span  class="label label-success">微信支付</span>
                        	{else if $de['paytype'] == 3}
                        	<span  class="label label-info">支付宝</span>
                        	{else}
                        	{else if $de['paytype'] == 1}
                        	<span  class="label label-warning">余额支付</span>
                        	{else}
                        	{else if $de['paytype'] == 5}
                        	<span  class="label label-default">小程序</span>
                        	{else}
                        	<span  class="label label-danger">其他方式</span>
                        	{/if}
                        </td>
                        <td>{$de['paytime']}</td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
        <div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
    </div>
</div>	


{php include wl_template('common/footer');}